<?php

namespace app\api\mimiddleware;

use app\admin\common;
use app\logic\traits\Token;

class CheckAuth
{
    public function handle($request, \Closure $next)
    {
        if(empty($request->user_id)){
            return common::return_json_layui([], '请登录',-1000);
        }
        return $next($request);
    }
}